package tjs.org.springLoader.config;

import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Created by Nicky.Tang on 2021/9/29 11:24 下午
 *
 * @since 02.12.10
 */
@Configuration
@EnableConfigurationProperties(AutoReloaderProperties.class)
public class AutoReoladerConfiguration {

    @Bean
    public RestartApplicationListener restartApplicationListener(AutoReloaderProperties autoReloaderProperties) {
        RestartApplicationListener restartApplicationListener = new RestartApplicationListener(autoReloaderProperties);
        return restartApplicationListener;
    }

}
